<!DOCTYPE doctype PUBLIC "-//w3c//dtd html 4.0 transitional//en">
<html><head>


  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  <meta name="Author" content="Sven Tafvelin">
  <meta name="GENERATOR" content="Mozilla/4.6 [en] (WinNT; I) [Netscape]">
  <title>Unix internt - Laboration 1</title>
</head><body>
Department of computer science and engineering &nbsp; &nbsp; &nbsp;
&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2008-01-31<br>
Chalmers &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Unix
internals<br>
ST/AD<br>
&nbsp;<br>
&nbsp;<br>
&nbsp;
<h2>Laboratory assignment 1 - Search for information in the Unix system</h2>
<h2><small>Purpose</small></h2>
<ul>
To search for information about a Unix system.
</ul>
<h4><big>Assignement:</big></h4>
<ul>
  <ol>
    <li>Under the directory '/etc' there are a lot of information that
is used by the operating system itself and by its services. Look up
what is stored here and examine some of the files. Can you you find the
information that is used by the function <span style="font-style: italic;">"getservbyname"</span>? What is the
content of&nbsp; <span style="font-style: italic;">fstab</span>?<br>
    </li>
    <li>There is a command, <span style="font-style: italic;">uname</span>,&nbsp;
that gives information about the machine you are using. Check what
information you can get from the command.<br>
    </li>
    <li>In Unix there is a command <span style="font-style: italic;">vmstat</span>.
Test what information you can get from it with different patameters.<br>
    </li>
    <li>Sockets can be used for communication in Unix. There are
different types of&nbsp; sockets (address family)&nbsp; for internet
and local communication, <span style="font-style: italic;">inet </span>and
      <span style="font-style: italic;">unix</span>. A Unix domain
socket is named as a file in the local filesystem. Can you find such a
file and how do you know that it is a socket?<br>
    </li>
  </ol>
</ul>
<h4><big>Hints:</big></h4>
<ul>
Use the unix man command (and possibly Google) to find information
about Unix commands and how they work.
</ul>
<h4><big>Reporting:</big></h4>
<ul>
No reporting required, but some knowledge from this assignment may be
needed in the following assignments
</ul>
<br>
<br>
</body></html>